<?xml version='1.0' encoding='UTF-8' ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/WEB-INF/templates/templateLogin.xhtml">
	<ui:define name="conteudo">
		<h:form id="form">
			<center>
				<h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5">

					<h1>Pesquisar Curriculo</h1>

					<p:growl id="msgs" showDetail="true" />

					<p:inputText value="#{curriculoController.nomeFiltro}"
						label="Digite aqui" size="80">
						<p:ajax event="keyup" listener="#{curriculoController.pesquisarTodosCurriculos()}" update="curriculo"></p:ajax>
						</p:inputText>
						<br />
				
				
					<h:selectOneRadio id="radioButton"  value="#{curriculoController.radioButton}"  >
						<f:selectItem id="atuacaoRadio" itemLabel="Area Atuacao" itemValue="AreaAtuacao" />	
						<f:selectItem id="nomeRadio" itemLabel="Nome" itemValue="Nome"/>
					</h:selectOneRadio>
				</h:panelGrid>
			</center>
		
		<p:dataTable id="curriculo" var="c" 
			value="#{curriculoController.curriculosBean}" emptyMessage="Nenhum Valor Encontrado" >

			<p:column headerText="Nome Completo" style="width:24%">
				<h:outputText value="#{c.nomeCompleto}" />
			</p:column>

			<p:column headerText="Experiencia Anteriores" style="width:24%">
				<h:outputText value="#{c.experienciaAnterior}" />
			</p:column>

			<p:column headerText="Curso" style="width:24%">
				<h:outputText value="#{c.cursos}" />
			</p:column>

			<p:column headerText="Habilidade" style="width:24%">
				<h:outputText value="#{c.habilidades}" />
			</p:column>

		</p:dataTable>

</h:form>
	</ui:define>
</ui:composition>

</html>